<?php
/**
 * this file is for exception handler
 *
 * exceptionhandler class handle exception, can used by other class
 * @date 2012.6.19
 * @author qixiaona@gmail.com
 * @access public
 * @package NICED 
 * @source NICED opensource php framework
 *
 */
class ExceptionHandler
{
    private $throw = true;
    private $exceptions = array();

    public function handle($e)
    {
        if ($this->throw)
        {
            throw $e;
        }
        else
        {
            $this->exceptions[] = $e;
        }
    }
}//end class
